<?php


namespace App\Dao;


use App\Exception\BusinessException;
use App\Model\Nav;
use App\Model\Setting;

class NavDao
{
    public function getList($data)
    {
        $pageSize = $data['pageSize'] ?: 10;
        $models = Nav::query()->paginate($pageSize);

        return $models;
    }

}